Add --disable-fsync option to both commit and pull (non-local)
authorJames Antill <james@and.org>
Mon, 2 Jun 2014 20:31:58 +0000 (16:31 -0400)
committerColin Walters <walters@verbum.org>
Tue, 3 Jun 2014 19:41:02 +0000 (15:41 -0400)
commitf22fa92aef0cf7334d09addacfdfc70c9f10e075
treea16ed44401ea462fb6ffb7953a79de6fd07bd0c0
parentb4d21e9406b1bd178f9a9875ba145c48a9591311
Add --disable-fsync option to both commit and pull (non-local)

On some storage configurations, fsync() can be extremely expensive.
Developers and users with slow hard drives may want the ability to opt
for speed over safety.

Furthermore, many production servers have UPS and stable kernels, and
the risk of not fsync'ing in that scenario is fairly low.  These users
should also be able to opt out.
src/ostree/ot-builtin-commit.c
src/ostree/ot-builtin-pull.c